Optional things

Then there is the optionality operator ?. The expression x ? is actually just a shorthand for () | x and displays like
\begin{rail}
x ?
\end{rail}